#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	int n;
	cin >> n;
	if (n % 15 == 0)
		cout << "yes";
	else
		cout << "no";
	return 0;
}
